dom0_ops return -EACCES when the interface version in wrong. I think
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Thu, 24 Nov 2005 10:06:26 +0000 (11:06 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Thu, 24 Nov 2005 10:06:26 +0000 (11:06 +0100)
that an acm failure is closer to being non-priv'ed, which returns
-EPERM.  Wouldn't want dom0 tools to report they were the wrong version
just because ACM limited some operation, surely?

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (authored)
xen/common/dom0_ops.c

index aa32927565e219a950b133bde78d43d4b9f5b4a0..4284f074d66c1031f1e8cb53fee4c981f3df6af0 100644 (file)
@@ -102,7 +102,7 @@ long do_dom0_op(dom0_op_t *u_dom0_op)
         return -EACCES;
 
     if ( acm_pre_dom0_op(op, &ssid) )
-        return -EACCES;
+        return -EPERM;
 
     spin_lock(&dom0_lock);